Object.create()

// 对象的继承

// 原型式的继承

function  obj(o) {
    function F() {}
    F.prototype = o
    return new F()
}

let a = {
    age:20
}
obj(a)


// Object.create()

var person = {
    name: '123',
    colors:['blue']
}

var p1 = Object.create(person)
var p2 = Object.create(person, {name: {value:'曹哥'}})


